package widget;

import form.Form;

import javax.swing.*;
import java.awt.*;

/**
 * Created by LLAP on 2017/12/13.
 * Copyright (c) 2017 LLAP. All rights reserved.
 */
public class WidgetTest extends Form {
    public WidgetTest() {
        super("Test", 800, 500);
        this.setMaxWidth(800);
        DataTable table = new DataTable(new entity.Offer());
        this.setLayout(new BorderLayout(10, 10));
        this.add("Center", table);
        /*JButton btn = new JButton("Dump");
        this.add("South", btn);
        btn.addActionListener(e -> {
            try {
                //System.out.println(t.getData().toString());
            }
            catch (IllegalArgumentException ex) {
                JOptionPane.showMessageDialog(null, ex.getMessage());
            }
        });*/
    }

    public static void main(String[] args) {
        new WidgetTest().setVisible(true);
    }
}
